package interrupt.join;


public class Test {
    public static void main(String... args) {
        Parent p = new Parent();
        try {
            p.start();
            Thread.sleep(3000);
            p.interrupt();
            p.join();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("main end");
    }
}
